跳到主要内容

数据库的卸载

当用户需要卸载 GBase 8s 数据库系统时,可使用卸载脚本自动卸载数据库。以下是卸载数据库的相关步骤。

  1. 使用gbasedbt用户执行onmode -ky命令停止数据库服务。
  2. 切换到 root 用户,进入安装目录下的 uninstall/uninstall_ids,执行该目录下的 uninstallids 命令进行卸载。直接回车确认卸载,示例如下:
[root@localhost ~]# cd /opt/GBASE/gbase/uninstall/uninstall_ids
[root@localhost uninstall_ids]# ./uninstallids
=========================================================================
GBase Software Bundle (created with InstallAnywhere)
-------------------------------------------------------------------------

Preparing CONSOLE Mode Uninstallation...




=========================================================================
Uninstall GBase Software Bundle
-------------------------------

About to uninstall GBase Software Bundle.

In this uninstall process, all GBase Software Bundle products in
/opt/GBASE/gbase will be uninstalled.
It is recommended that you first shutdown all database server instances related
to this installation prior to uninstalling the product.

PRESS <ENTER> TO CONTINUE:
  1. 根据自身需求选择卸载选项。如下示例中选择 2 删除所有相关联的数据库文件,回车开始卸载。
=========================================================================
Server Uninstall Options
------------------------

Server action:

Important: Choosing to remove all databases will remove all database chunks,
environment files, registry entries, and message log files for all database
server instances associated with this installation.

->1- Retains all databases, but removes all server binaries
2- Removes server binaries and all databases associated with them

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: 2


=========================================================================
Uninstalling...
---------------


...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
*************************



=========================================================================
Uninstall Complete
------------------

Uninstall is complete for GBase Software Bundle.

Product uninstall status:
GBase: Successful

卸载状态显示为Successful,卸载成功。